package com.risk.login.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Desc
 * @Date 2018/5/23:下午10:39
 * @uthor yzMa
 * @email 2641007740@qq.com
 */
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping(value = "/go/{name}",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public String go(@PathVariable("name")String name){
        System.out.println("----");
        return "你好世界";
    }
}
